// pages/script/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    scriptList:[]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({scriptList:wx.getStorageSync('BoardGameList').data})
    console.log(this.data.scriptList);
    
  },
  TurnTo(e) {
    var products = e.currentTarget.dataset.products
    var pro = JSON.stringify(products)
    console.log(products.url + '?products=' + pro,);
    
    wx.navigateTo({
        url: products.url + '?products=' + pro,
    })
},
})